package com.ruoyi.app.service.impl;

import com.ruoyi.app.domain.Area;
import com.ruoyi.app.domain.Filling;
import com.ruoyi.app.domain.Station;
import com.ruoyi.app.domain.User;
import com.ruoyi.app.service.impl.mapper.FillingMapper;
import com.ruoyi.app.service.IFillingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IFillingServcieImpl implements IFillingService {

    @Autowired
    private FillingMapper fillingMapper;
    @Override
    public List<Area> selectAreaList(Area area) {
        return fillingMapper.selectAreaList(area);
    }

    @Override
    public List<Station> selectStationList(Station station) {
        return fillingMapper.selectStationList(station);
    }

    @Override
    public List<User> selectUserList(User user) {
        return fillingMapper.selectUserList(user);
    }

    @Override
    public int insertFilling(Filling filling) {
        return fillingMapper.insertFilling(filling);
    }

    @Override
    public int updateFilling(Filling filling) {
        return fillingMapper.updateFilling(filling);
    }

    @Override
    public String selectAreaListByTime(String userId,String times,String endTime) {
        return fillingMapper.selectAreaListByTime(userId,times,endTime);
    }

    @Override
    public List<Filling> selectFillingList(Filling filling) {
        return fillingMapper.selectFillingList(filling);
    }

    @Override
    public Filling selectFillingById(Filling filling) {
        return fillingMapper.selectFillingById(filling);
    }

    @Override
    public Filling selectFillingNowMonth(Filling filling) {
        return fillingMapper.selectFillingNowMonth(filling);
    }
}
